import { Button } from 'antd';
import { ArrowRightOutlined } from '@ant-design/icons';
import { TableHomeAPI } from '../common/type';
import { onMouseOutBtn } from '@/utils';
import { history } from 'umi';

export const TableExtraView: React.FC<TableHomeAPI.ITableExtraView> = ({ styleFixCls, tabPaneKey }) => {
  return (
    <div className={`${styleFixCls}-extraSearch`}>
      {/* <Button
        icon={<ArrowRightOutlined />}
        onMouseOut={onMouseOutBtn}
        onClick={() => {
          history?.push({
            pathname: '/purchaseController/taskManage',
            state: {
              tabPaneKey,
            },
          });
        }}
      >
        更多
      </Button> */}
      <a
        onClick={() => {
          history?.push({
            pathname: '/purchaseController/taskManage',
            state: {
              tabPaneKey,
            },
          });
        }}
      >
        更多
      </a>
    </div>
  );
};
